package com.cn.boot.student.mapper;

import com.cn.boot.student.entity.SignEntity;
import com.cn.boot.student.entity.UserEntity;

import java.util.List;

/**
 * 数据持久层
 */
public interface SignMapper {
    /**
     * 签到状态更新
     * @param signEntity
     * @return
     */
    Integer update(SignEntity signEntity);
    /**
     * 签到状态增加
     * @param signEntity
     * @return
     */
    Integer add(SignEntity signEntity);
    Integer insert(SignEntity signEntity);
    /**
     * 查询签到状态
     *
     * @param userEntity
     * @return
     */
    List<UserEntity> findAll(UserEntity userEntity);

    List<UserEntity> signByUserId(Integer id);
    Integer getCount(UserEntity userEntity);
}
